LanguageExt.Core

LanguageExt.Core Monads IdentityT

Contents

record IdentityT <M, A> (K<M, A> Value) Source #

where M : Monad<M>, SemiAlternative<M>

IdentityT monad

Parameters

type A

Bound value type

Methods

method IdentityT<M, A> Pure (A value) Source #

method IdentityT<M, A> Lift (K<M, A> value) Source #

method IdentityT<M, B> Map <B> (Func<A, B> f) Source #

method IdentityT<M, B> MapM <B> (Func<K<M, A>, K<M, B>> f) Source #

Maps the given monad

Parameters

param f

Mapping function

method IdentityT<M, B> Select <B> (Func<A, B> f) Source #

method IdentityT<M, B> Bind <B> (Func<A, IdentityT<M, B>> f) Source #

method IdentityT<M, B> Bind <B> (Func<A, K<IdentityT<M>, B>> f) Source #

method IdentityT<M, B> Bind <B> (Func<A, Pure<B>> f) Source #

method IdentityT<M, B> Bind <B> (Func<A, IO<B>> f) Source #

method IdentityT<M, C> SelectMany <B, C> (Func<A, IdentityT<M, B>> bind, Func<A, B, C> project) Source #

method IdentityT<M, C> SelectMany <B, C> (Func<A, K<IdentityT<M>, B>> bind, Func<A, B, C> project) Source #

method IdentityT<M, C> SelectMany <B, C> (Func<A, Pure<B>> bind, Func<A, B, C> project) Source #

method IdentityT<M, C> SelectMany <B, C> (Func<A, IO<B>> bind, Func<A, B, C> project) Source #

class IdentityTExt Source #

Methods

method IdentityT<M, A> As <M, A> (this K<IdentityT<M>, A> ma) Source #

where M : Monad<M>, SemiAlternative<M>

class IdentityT <M> Source #

where M : Monad<M>, SemiAlternative<M>

Identity module

Methods

method K<IdentityT<M>, A> Pure <A> (A value) Source #

method IdentityT<M, B> bind <A, B> (IdentityT<M, A> ma, Func<A, IdentityT<M, B>> f) Source #

method IdentityT<M, B> map <A, B> (Func<A, B> f, IdentityT<M, A> ma) Source #

method IdentityT<M, B> apply <A, B> (IdentityT<M, Func<A, B>> mf, IdentityT<M, A> ma) Source #

method IdentityT<M, B> action <A, B> (IdentityT<M, A> ma, IdentityT<M, B> mb) Source #